<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<h3>人的对象：firstname 姓，lastname 名字 age 年龄 </h3>
	</body>
	<script>
		var person = {
			firstname:"何",
			lastname: "青山",
			age: 20,
				
			fullName1:function(){
				return this.firstname+this.lastname;
			}
		}
		console.log(person);
		console.log(person.firstname);
		console.log(person.age);
		console.log(person.fullName1());
		person.addadress = "安徽安庆";
		person.fullName2=function(){
			return person.firstname+person.lastname+","+person.age
		}
		console.log(person);
		console.log(person.fullName2())
	</script>
</html>
